﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SharedGenomics.Domain
{
    public enum JobType : short
    {
        PassocBT = 1,
        PassocQT = 2,
        PModel = 3,
        PepiBT = 4,
        FastPepiBT = 5,
        PepiQT = 6,
        PCMH = 7
    }

    public static class JobTypeExtensions
    {
        public static string GetDisplayString(this JobType jt)
        {
            switch (jt)
            {
                case JobType.FastPepiBT:
                    return "Fast Epistasis (Binary Trait)";
                case JobType.PassocBT:
                    return "Association (Binary Trait)";
                case JobType.PassocQT:
                    return "Association (Quantitative Trait)";
                case JobType.PepiBT:
                    return "Epistasis (Binary Trait)";
                case JobType.PepiQT:
                    return "Epistasis (Quantitative Trait)";
                case JobType.PModel:
                    return "Model";
                case JobType.PCMH:
                    return "Cochran-Mantel-Haenszel (Binary Trait)";
                default:
                    //unknown JobType
                    return jt.ToString();
            }
        }
    }
}
